package com.yanqu.road.server.manger.kowloon.battle.role.hero;

import com.yanqu.road.entity.kowloon.enums.battle.eKowloonBulletType;
import com.yanqu.road.server.manger.kowloon.battle.KowloonGame;
import com.yanqu.road.server.manger.kowloon.battle.role.bullet.KowloonBullet;
import com.yanqu.road.server.manger.kowloon.battle.role.enemy.KowloonEnemy;

public class KowloonHero4 extends KowloonHero{

    public KowloonHero4(KowloonGame game) {
        super(game);
    }

    @Override
    public void attack() {
        if (this.targetEnemys !=null && this.targetEnemys.size() > 0) {
            KowloonEnemy enemy = this.targetEnemys.get(0);
            KowloonBullet.addBullet(game, eKowloonBulletType.Amulet, this, enemy, 0);
        }
        this.cd();
    }
}
